package com.dykj.fireFighting.web.service.impl;

import com.dykj.fireFighting.common.core.utils.DateUtil;
import com.dykj.fireFighting.web.entity.DevHisSXin;
import com.dykj.fireFighting.web.mapper.DevHisSXinMapper;
import com.dykj.fireFighting.web.service.DevHisSXinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DevHisSXinServiceImpl implements DevHisSXinService {
    @Autowired
    private DevHisSXinMapper devHisSXinMapper;
    @Override
    public int insertDevHisSXin(DevHisSXin devHisSXin) {
        String tableName="dev_his_sxin_"+ DateUtil.getYearWeek();
        return devHisSXinMapper.insertDevHisSXin(tableName,devHisSXin);
    }
}
